package com.jtpay.unionpay.product.http.dataStructure;

/**
 * Created by Administrator on 2018/1/16.
 */

public class BasicResponse<T> {
    private boolean Flag;
    private String Msg;
    private T Data;

    public boolean isFlag() {
        return Flag;
    }

    public void setFlag(boolean flag) {
        Flag = flag;
    }

    public String getMsg() {
        return Msg;
    }

    public void setMsg(String msg) {
        Msg = msg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }

    @Override
    public String toString() {
        return String.format("flag = %s msg = %s data = %s",
                Flag, Msg, Data == null ? "null" : Data.toString());
    }
}
